//adds and event listener across major browser versions
function addEvent( obj, type, fn )
{
if ( obj.addEventListener )
{
obj.addEventListener( type, fn, true );
}
else if ( obj.attachEvent )
{
obj.attachEvent( "on" + type, fn );
}
else
{
obj["on" + type] = fn;
}
}
//removes event listeners across major browser versions
function removeEvent( obj, type, fn )
{
if ( obj.removeEventListener )
{
obj.removeEventListener( type, fn, true );
}
else if ( obj.detachEvent )
{
obj.detachEvent( "on" + type, fn );
}
else
{
delete obj["on" + type];
}
}
function divClickHandler()
{
var id = "video1";
var so = new SWFObject( "$URI", "csSWF", "$Width", "$Height", "$PlayerVersion", "#1a1a1a");
so.addParam( "quality", "best" );
so.addParam( "allowFullScreen", "$FullScreen" );
so.addParam( "scale", "$ScaleMode" );
so.addParam( "allowScriptAccess", "always" );
so.addVariable( "autostart", "true" );
if( !so.write( "video1" ) )
{
var node = '<div id="cs_noexpressUpdate">'
+ '<p align="center">The Camtasia Studio video content presented here </p><p align="center"> requires JavaScript to be enabled and the latest version </p><p align="center">of the Macromedia Flash Player. If you are you using </p><p align="center">a browser with JavaScript disabled please enable it now.</p><p align="center"> Otherwise, please update your version of the </p><p align="center">free Flash Player by <a href="http://www.macromedia.com/go/getflashplayer">downloading here</a>. </p>'
+ '</div>'
var n = (typeof id == 'string') ? document.getElementById( id ) : id;